﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Cooperation
{
    public partial class LoginFaild : Form
    {
        static LoginFaild LoginFaildForm = null;
        public LoginFaild()
        {
            InitializeComponent();
            LoginFaildForm = this;
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://yaojianzhi.com/account/resetpassword");
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://yaojianzhi.com/home/contact");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            Index.IndexForm.Visible = true;
        }
        public static void ShowLoginFaildForm()
        {
            if (LoginFaildForm == null)
            {
                new LoginFaild();
                LoginFaildForm.Show();
            }
            else
            {
                LoginFaildForm.Show();
            }
        }

        private void LoginFaild_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (LoginFaildForm != null)
            {
                LoginFaildForm = null;
            }
        }
    }
}
